home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: A World of Opportunities / CanadianForces-AWorldOfOpportunities-WinMac.bin / 02_JobsNavy_FR.swf / scripts / DefineButton2_422 / BUTTONCONDACTION on(press).as
Text File  |  2006-07-25  |  543b  |  18 lines

  1. on(press){
  2.    poslastslash = this._url.lastIndexOf("\\");
  3.    if(poslastslash == -1)
  4.    {
  5.       poslastslash = this._url.lastIndexOf("/");
  6.    }
  7.    folderurl = this._url.substr(0,poslastslash + 1);
  8.    poscolon = folderurl.indexOf("|");
  9.    if(poscolon != -1)
  10.    {
  11.       folderurlstart = folderurl.substr(0,poscolon);
  12.       folderurlend = folderurl.substr(poscolon + 1);
  13.       folderurl = folderurlstart + ":" + folderurlend;
  14.    }
  15.    targeturl = folderurl + "decoupe/02_NAVY_Jobs/pdf/275_fr.pdf";
  16.    getURL(targeturl,"_blank");
  17. }
  18.